import Vue from 'vue'
import Router from 'vue-router'
import BaseLayout from '@/components/BaseLayout'
import Login from '@/components/Login'
import Index from '@/components/Index'
import GoodsManagement from '@/components/GoodsManagement'
import Logout from '@/components/Logout'
import GoodsDetailsEditor from '@/components/GoodsDetailsEditor'
import GoodsImsageList from '@/components/GoodsImageList'

Vue.use(Router)


export default new Router({
    routes: [{
            path: '/',
            name: 'Index',
            component: Index
        },
        {
            path: '/logout',
            name: 'Logout',
            component: Logout
        },
        {
            path: '/goods',
            name: 'GoodsManagement',
            component: GoodsManagement
        },
        {
            path: '/login',
            name: 'Login',
            component: Login
        },
        {
            path: "/editor",
            name: "GoodsDetailsEditor",
            component: GoodsImsageList
        }
    ]
})